package com.swgk.core.event;

public class MenuEvent {
    int messageTag;
    String no;
    String childNo;
    Object messageData;

    public static MenuEvent make() {
        return new MenuEvent();
    }

    public static MenuEvent make(String no, String childNo, int messageTag) {
        MenuEvent message = new MenuEvent();
        return message.setNo(no).setChildNo(childNo).setMessageTag(messageTag);
    }
    public static MenuEvent make(int tag, Object object) {
        MenuEvent message = new MenuEvent();
        return message.setMessageData(object).setMessageTag(tag);
    }
    public int getMessageTag() {
        return messageTag;
    }

    public MenuEvent setMessageTag(int messageTag) {
        this.messageTag = messageTag;
        return this;
    }

    public String getNo() {
        if (no == null) {
            return "";
        } else {
            return no;
        }
    }

    public MenuEvent setNo(String no) {
        this.no = no;
        return this;
    }

    public String getChildNo() {
        return childNo;
    }

    public MenuEvent setChildNo(String childNo) {
        this.childNo = childNo;
        return this;
    }


    public Object getMessageData() {
        return messageData;
    }

    public MenuEvent setMessageData(Object messageData) {
        this.messageData = messageData;
        return this;
    }
}
